<?php get_header(); ?>

<div class="error-404 not-found">
    <div class="page-content">
        <h1>404</h1>
        <h2>页面未找到</h2>
        <p>抱歉,您访问的页面不存在或已被删除。</p>
        <div class="error-actions">
            <a href="<?php echo home_url(); ?>" class="btn btn-primary">
                <i class="icon iconfont icon-home"></i>
                返回首页
            </a>
            <a href="javascript:history.back();" class="btn btn-secondary">
                <i class="icon iconfont icon-back"></i>
                返回上一页
            </a>
        </div>
    </div>
</div>

<style>
.error-404 {
    text-align: center;
    padding: 100px 0;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-404 h1 {
    font-size: 120px;
    margin-bottom: 0;
    color: #dc3545;
}

.error-404 h2 {
    font-size: 24px;
    margin: 20px 0;
    color: #343a40;
}

.error-404 p {
    color: #6c757d;
    margin-bottom: 30px;
}

.error-actions {
    margin-top: 30px;
}

.error-actions .btn {
    margin: 0 10px;
    padding: 10px 30px;
}

.error-actions i {
    margin-right: 5px;
}
</style>

<?php get_footer(); ?>
